import { NgModule } from '@angular/core';
import { MyComponent } from './my.component';
import { RouterModule, Routes } from '@angular/router';
import { ShareModule } from 'src/app/share/share.module';

const routes: Routes = [
  { path: '', component: MyComponent }
]

@NgModule({
  declarations: [MyComponent],
  imports: [
    ShareModule,
    RouterModule.forChild(routes)
  ]
})
export class MyModule { }
